USER=jcplessis
HOST=ssh.alwaysdata.com

URL=$USER@$HOST

DELIVERY=/tmp/delivery

rm -rf $DELIVERY
mkdir $DELIVERY

find ./extremeKanban/ ! -path "*.svn*" ! -name "*.pyc" ! -path "*/ext/*" ! -name "ext*" ! -path "*test*" ! -type d -exec cp --parents {} $DELIVERY \;
cp -r concordion_report $DELIVERY/extremeKanban/public/guide

ssh $URL "rm -rf extremeKanban"
scp -r $DELIVERY/extremeKanban $URL:
ssh $URL "chmod +x extremeKanban/public/django.fcgi"

rm -rf $DELIVERY


# Connect to https://admin.alwaysdata.com/
# Go to Domain, edit your domain and make root directory be /extremeKanban/public
# Go to https://admin.alwaysdata.com/advanced/processes/
# Kill existing process, reboot is automatic

